package ming.hello.controller;

import ming.hello.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
public class EmployeeController {



    @Autowired
    private EmployeeService employeeService;

    @RequestMapping("/getEmployeeAll")
    @ResponseBody
    public List<Map<String, Object>> getEmployeeAll(){
        return employeeService.getEmployeeAll();
    }

    /*@RequestMapping("/selectAll2")
    @ResponseBody
    public List<Employee> getEmployeeAll2(){
        return employeeService.getEmployeeAll2();
    }*/



}
